#ifndef __DIR_H__
#define __DIR_H__

	#define DIR_SUCCESSFUL				0
	#define DIR_NON_EXISTENT			1
	#define DIR_ALREADY_EXISTENT		2
	#define DIR_NOSPACE_TOCREATE		3

	#define DIR_NOT_EMPTY				6

	extern void InitCurrentDirToRoot(void);
	extern void SaveCurrentDir(void);
	extern void RecoverCurrentDir(void);
	extern UINT8 SetCurrentDirByName(UINT8 DirName[]);
	extern UINT8 IsCurrentDirRoot(void);
	extern UINT8 SetCurrentDirToParent(DIR *Value);
	extern UINT8 DirGetDIRValue(UINT8 DirName[], DIR *Value);
	extern UINT8 DirCreate(UINT8 DirName[]);
	extern UINT8 DirDelete(UINT8 DirName[]);
	extern UINT32 CurrentDirEnumNums(UINT8 IsForce);
	extern UINT8 CurrentDirEnumNames(UINT32 StartIndex, UINT32 Nums, UINT8 Names[]);

#endif
